package com.ag.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * TbEventReportAudit entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_EVENT_REPORT_AUDIT", schema = "dbo", catalog = "AGDB")
public class TbEventReportAudit implements java.io.Serializable {

	// Fields

	private String eraId;
	private TbUser tbUser;
	private TbEventReport tbEventReport;
	private Date eraTime;
	private String eraContent;
	private String eraAgree;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbEventReportAudit() {
	}

	/** full constructor */
	public TbEventReportAudit(TbUser tbUser, TbEventReport tbEventReport,
			Date eraTime, String eraContent, String eraAgree, String a,
			String b, String c) {
		this.tbUser = tbUser;
		this.tbEventReport = tbEventReport;
		this.eraTime = eraTime;
		this.eraContent = eraContent;
		this.eraAgree = eraAgree;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ERA_ID", unique = true, nullable = false, length = 32)
	public String getEraId() {
		return this.eraId;
	}

	public void setEraId(String eraId) {
		this.eraId = eraId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "U_ID")
	public TbUser getTbUser() {
		return this.tbUser;
	}

	public void setTbUser(TbUser tbUser) {
		this.tbUser = tbUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "E_ID")
	public TbEventReport getTbEventReport() {
		return this.tbEventReport;
	}

	public void setTbEventReport(TbEventReport tbEventReport) {
		this.tbEventReport = tbEventReport;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ERA_TIME", length = 23)
	public Date getEraTime() {
		return this.eraTime;
	}

	public void setEraTime(Date eraTime) {
		this.eraTime = eraTime;
	}

	@Column(name = "ERA_CONTENT", length = 1024)
	public String getEraContent() {
		return this.eraContent;
	}

	public void setEraContent(String eraContent) {
		this.eraContent = eraContent;
	}

	@Column(name = "ERA_AGREE", length = 2)
	public String getEraAgree() {
		return this.eraAgree;
	}

	public void setEraAgree(String eraAgree) {
		this.eraAgree = eraAgree;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}